/**
 * 
 */
package info.pello.struts.tulebox.example;

/**
 * Attributes Class
 * @author Raquel Valenzuela Ganuza
 *
 */
public class Attributes {
	private static final int TOTAL_VALUE = 30;
	private Integer intelligence;
	private Integer strength;
	private Integer skill;
	
	/**
	 * Constructor for new Attributes
	 * @param intelligence
	 * @param strength
	 * @param skill
	 */
	public Attributes(Integer intelligence, Integer strength, Integer skill){
		this.intelligence= intelligence;
		this.strength= strength;
		this.skill= skill;
	}
	
	/**
	 * checkAttributes
	 * Checks if value of attributes is right
	 * @return
	 */
	public boolean checkAttributes(){
		return ((this.intelligence + this.strength + this.skill)==TOTAL_VALUE);
	}

}
